<h1>Papers List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Title</th>
      <th>Cost</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($papers as $paper): ?>
    <tr>
      <td><a href="<?php echo url_for('Paper/edit?id='.$paper->getId()) ?>"><?php echo $paper->getId() ?></a></td>
      <td><?php echo $paper->getTitle() ?></td>
      <td><?php echo $paper->getCost() ?></td>
      <td><?php echo $paper->getCreatedAt() ?></td>
      <td><?php echo $paper->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('Paper/new') ?>">New</a>
